// 接口是一种约束能力
interface Params  {
  name: string,
  age: number
}

let showUser = function(user:Params):object {
  return { ...user }
}

console.log(showUser({ name: "宋宇", age: 15 }))
export default showUser